package idv.cjcat.stardust.common.xml;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;

public class XMLElement{
	
	public Element element;
	
	public static DocumentBuilderFactory factory;
	public static DocumentBuilder builder;
	public static Document document = initDocument();
	
	private static Document initDocument(){
		factory = DocumentBuilderFactory.newInstance();
		try{
			builder = factory.newDocumentBuilder();
		}catch(ParserConfigurationException ex){
			
		}
		return builder.newDocument();
	}

}